package com.woniuxy.kaer.shop.service;

import com.woniuxy.kaer.commons.util.PageInfo;
import com.woniuxy.kaer.param.AddOrderParam;
import com.woniuxy.kaer.param.SearchOrderParam;
import com.woniuxy.kaer.shop.model.ProductOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 郭建东
 * @since 2025年02月17日
 */
public interface ProductOrderService extends IService<ProductOrder> {

    ProductOrder addOrder(AddOrderParam param, Integer userId)throws Exception;

    String  pay(String productOrderId, Integer userId)throws Exception;

    void handleOrder(Map<String, String> params)throws Exception;

    void updateOrder(String orderNum,String payTime)throws Exception;

    void cancelOrder(String productOrderId)throws Exception;

    void confirmOrder(String productOrderId,Integer userId);

    void shipments(String productOrderId)throws Exception;

//    PageInfo searchOrder(SearchOrderParam param)throws Exception;
//
//    PageInfo searchMyOrder(SearchOrderParam param, Integer userId)throws Exception;

    PageInfo searchOrders(SearchOrderParam param, Integer userId)throws Exception;
}
